import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;



public class CountShowServlet extends HttpServlet {


    public void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {

        ServletContext context = getServletContext();
        int times = (Integer) context.getAttribute("visitTimes");

        response.getWriter().println(times);
    }


    public void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        doGet(request, response);
    }

}